Split functionality in multiple files