Various shared bits o code