Added support for top placement