Everything working except the delay routine for some reason.