Created functions for all files