Initial commit. Rewriting script.WIP