Removed inner function