Replaced interval+take1+subscribeNext with afterDelay
Style fix
Merge pull request #1011