The Scotland international has penned a three-year deal after ongoing talks with Derek McInnes over his future