Basic structure - alot of debugging left