Reworked code using node_rackspace