Adding 'gettype' optimizer