Added IP address to log, bit of a hacky implementation though