Added more correct delay function