Reviewed pframe_get
Did some tweak about pframe functions