Return -1 instead of false in main