Forgot to credit Trond Øvstetun for contribution.