Finished writing script for marker placement