Un-hardwired filename and now pipuluate into tmp