Implemented 'apply' using the 'compile as instruction' existing 'framework'.