Add queue tail function.