Changed port type to int.