Remove end of function