Remove inner function