Added constructor to client