Added ConfigState object and started to work on the dynamic resolution