Got function parsing working