Added ability to specify an offset from the top.