Added console log to debug on deployment
Updated variables to be consistent with what is being received from client