Implemented argument parsing stuff