Small changes
Added reporting function