Changed boolean to int for better performance