Added a new functions file and sourced it