Added function for port checks