Big update. Moved host and port settings to config file. Changed create_delay to be a server function. Changed delay handling to automatically check for expired delays.