Remove function from inside other function... I'm so sorry.