Fixed all warnings in the walk optimiser