Added CreatePin and fixed coordinate issues