Refactored load statement and adjusted result handling