My second attempt to get P4 working