Moved all shell functions to a seperate file