Added dict method to utils