How Rehab works?