Added support for variable placement above and below