Initial commit, misc utilities