Fixed more things, changed flip direction