Refactored the code adding a new file of functions.