Fixed yegge function, moved larger functions to behaviours