Added -pinggw option, in a loop to run permanently