Added new version for bar_monitor.c