Updated Firmware Slave. Added dynamic memory management.