Removed unused debug parameter.