Added generate_trust method to utils