Delay function added to library