Backport enqueue_at_with_queue

Backported the enqueue_at_with_queue and enqueue_in_with_queue methods from 2.0.