What was the Duke of York's relationship to his religion described as being?