Replace low-level stack accessing with getting property from stackframe