typo fix, opts[:duration] was never taken into considaration due to this typo.