Don't pass undefined value.
Use simple queue for faster writes.