Add closing brace to function