FIX: assertion extended to accept routines.