Started work on GD middleware