Add functions to seperate file