Added support for chaining module functions.