Added contract validation.
Added tips statistics.