Use config_size to determine offsets instead of a constant