Split functions into files