Something like a automat