Safer docs script