FIX: Added parameter array checking

Changed some debugging code.