Another attempt at avoiding the 'bool' issue