Meesagebox now works outside of IDLE, Check if delay is numerical

The messagebox did not work except when running the IDLE. Fixed by using
import as.