Updated to work with newly extracted paminajs