Added functionaltiy for creating spot.