Added splice method to queue