Moved functions out into /Functions and added generic Useful_functions