Added receipt class. Switched post request to another thread.