Basic structure setup, needs debugging