Moved all functions from init.el to util.el