Removed debug statements.
Fixes for aggregate searches; workaround for null parameter lists.