Cleaning up tablet logic.