Refactored get for efficiency