Added Weiss' frames code.