Cleanup functions extra space