Added wrapper functionn to enable to run directly from terminal