Removed superfluous inner function.