Add queue class.