Re-Added clearFrame, which was accidentally deleted before.