Implements simple logic in models