Revert "Use boolean instead of Int"

This reverts commit c033b65bf97156e7dd76a07d485840895f1efc97.