Changing the title here will make the already existing code not fit this new description. Perhaps you meant for this to be on it's own and or include it here since it's basically misc code.