Added delay value to config and code