This is something I deleted because it had no chance of working with my changes. My intent was to re-add the functionality later, while looking at the original source and maybe copying it back in.