Performance fixes and flips Y.