Doing logic in layouts.