M7 Code up. stuff needs fixing but runs