Change binary state agent

resolves #5