Changes to devise