Marker creation in separate method