Do you charge by the hour, or a flat rate?

We generally work for a flat fee, because we like to keep our relationships simple, although some projects require hourly billing.