Refactored prospects code and removed debugging prints