Direct use of monitor function instead of subroutine call.