Split functions into individual files