Added grid functionality and scanner for used ports