Added spot code from pg. 578