Finally fixed scripts, dependencies and motor