Completely change the script. Added elementary bash interface.