Creating offsets dictionary