Set delay to an int to prevent TypeError