Exported the portchecker script to its own file