Added some additional code to fta_client.py