Slight changes to decide()