Added ship_udf() function