Adding documentation where useful.