Implement setupFrame.