Reviewed create_marker function