Some parameter safety checks