Added logic for views by convention.