If statements finally work