Added logic to only add one marker at a time