I've made the move-beginning-of-line function work.