Function production wasn't in the right place