Fixing functionMonitor() to check for type of bp.