Delayfunction implemented