Added support for 'apply'.