Adapt variables