Extended helper function