Added top/left offset_max as an option versus having them hard coded in.