Refactored callbacks, added support for auto setting IP to TUN interface