Updated framewidth, frameheight. Changed duration to length.