Refactored obtuse function