Removed Delayfunction