Removed bogus alloc. Added few log prints.