Implementing 'compiled' formula functionality