most recent work

Most recent work. Logic for controllers