Fixed bug with setting post parameters and added logging support