Making it work with dependencies and to publish to command line