Delay parameter and functionality added
Methods init and method close