Add offsets to the config file and fix offset glitch