Add write param to frame method