Some misc code.