Added functions

Added functions to file