Broke out the client core code.