Version 1.8 rewritten for PS 1.6