Argh, mixed declarations and code.