Controller, Program Logic