Fix for issue #665

Missing closing brace at end of last function.