Added XINIT flag

This still needs to be tweaked more, lots of false calls on the stuff