Added giveQueIntance method.