Updated investments script so that it is more usable