Updated pmath