Fixed so that sources and destinations are actually IP adresses instead of just integers.