Changing marker's creation to the new marker method.