Added code to differentiate between dimensions when pushing data