you should not. - don't accept delay == 1000, because it turns to 0 and fix the number parsing - misc KNF cleanups.