Fixed query bug and added Transaction submission feature.