Fix formatting and allow top/bottom too.