Implenmentet some logging, argparse still missing.