Made the frame class a bit more handy.