Removing global function