Added the new callback system again, this time with a connectEx function as an alternative for the part that not all compilers support