http://jira.diamond.ac.uk/browse/UAS-767