Moved the functions in my layout out to a separate .c file because I believe that's where stuff like that belongs.