Rewrite crate command to allow for console use