Improve Hugs so users can define functions.