Changed transaction model to command model