Added status function in console and corrected print status function