Repo miscellaneous code