Removed dead code.
Tidied.
Merge remote-tracking branch 'upstream/master'