Bill added registeration and refined some code.