Initial code with some framework stuff