Added dispatch stuff.
Modified YCM configuration to be a bit smarter.