Move code to service class
First version of client mode
Ignore file