Changed from bin str to int