Might have some reasonable code now