Changed 'bool' to 'int' (hard to remember how to write C).