Added smarter-beginning-of-line function