Work from 1/11/2013: Factor more behaviour into the Frame class.