Added example to redirect and setup datastruct