Refactor with partial applications.
Bump to 0.4.2.