Can't quite remember, late night code...