home defeat to Celtic on Hogmanay 2016. He also scored the only goal for Rangers in a 5–1 defeat to Celtic, the heaviest defeat at Ibrox since 1897. Miller scored his first goals of 2017 with a late brace in a 2–1 Scottish Cup win at home to Motherwell on 21 January and followed this a week later by netting the opening goal in a league match, also against Motherwell. On 28 April, Miller signed an extension to his contract until 2018 with manager Pedro Caixinha stating he was impressed by Millers professionalism and leadership. Miller scored the opening goal in Rangers' 2017–18 season against Progrès Niederkorn in the Europa League on 29 June 2017. Despite his goal, Rangers went on to lose 2–1 on aggregate, giving Progrès their first ever European win. Miller was dropped from the Rangers first team in September 2017. This came after Pedro Caixinha had criticised some of the team's Scottish players in a meeting after a 2–0 defeat by Celtic. Caixinha then suggested that a Rangers player had leaked team information to opponents, which led journalists to surmise that Miller had been the source. Caixinha was sacked in late October, and Miller was reinstated to the Rangers team by caretaker manager Graeme Murty; in his first game back, Miller scored two goals in a 3–1 win against Hearts. In April 2018, Miller and teammate Lee Wallace were suspended by the club pending an internal investigation into an altercation with manager Murty, in the aftermath of the 2017–18 Scottish Cup semi-final which Rangers had lost 4–0 to Celtic. Miller was fined by Rangers and left the club at the end of his contract. Five months after the incident for which they were disciplined, Miller and Lee Wallace won an appeal at a SPFL tribunal against the action taken against them, with the expectation they would make a financial claim against Rangers for the fines imposed. Over his three spells at the club, he made 301 appearances in all competitions, scoring 116 goals. Livingston player/manager Miller was appointed player-manager of Scottish Premiership club Livingston in June 2018. He scored his first goal for the club on his third appearance, netting the only goal of a 1–0 victory over Dumbarton on 21 July in the group stage of the 2018–19 Scottish League Cup. He left the role on 19 August, with his departure being an 'amicable agreement'