Finish parser for function