Converted location creation system to new api.