Moved scritps into lib