Changed contract from boolean to int