Updated simple proxy server flow and corrected bugs