Added some logic so only side:top mode is targeted.