Changed 'void' to 'int'