Fix get_function_key issue by putting the function outside the FrameList class