added Ryan's definition. Will try testing it as soon as I fix the generator which Ken broke...AGAIN!! :-(