Adding delay function in a separate module