Code fixing

Signed-off-by: tachyony <tachyony@live.co.uk>
Quarry updates

Signed-off-by: tachyony <tachyony@live.co.uk>