(PSP) implemented salamander and added support for switching between cores.