Fixed some logic stuff.