Improvements to currying