Confusing logic ftw.