Changed Quote datatype and did some more generalization of crypto stuff