Use Result enum as return type rather than bool