Define functions properly, derp derp