Added: print flag in some functions.

Signed-off-by: Utkarsh Jaiswal <ujaiswal.iit@gmail.com>