Implemented the status command