Updated for Proteus / XE6