SMS dit: Difference equations with applications to queues