Main with some basic utilities