Added default value for delay