Set to register some variable trying to improve performance