Created working step function for Photon.js