Initial import of the ipcheck script