Added top and bottom modes
1.0.4