Added basic functions for report state recording

Signed-off-by: abhisek <abhisek.datta@gmail.com>