Had value and variables wrong, now flipped correct