Psuedocoded some thoughts