Main with port