Introducing Mr Clay's AutoP function.