Removed all functions from code controller