Added method

Added the run method to the client. added conditions to the method.