Commit 467c52bb4a8cc8bdf63f08c5c12552c680855724

Con Kolivas 2011-08-11T12:38:42

Allocate work from one function to be able to initialise variables added later.