David Moyes was full of praise for Wayne Rooney after his goal against Crystal Palace and admitted it was vital to secure the striker to a new deal.