OKKKAAAYYY...... Thanks, Hippy. You were correct as usual. I actually looked at PIE1 but decided it shouldn't have an effect - wrong again. Also changed the internal clock to Fosc/4. Code seems to work properly (see below).
Once again, thanks to everyone. This has been a true learning...