Removed outermost function wrapper

It seemed unnecessary.