Stack optimization

Optimization for XMLRPC Slave processing.

Andrea Zoppi
Small fixes

Andrea Zoppi