Prim should be working correctly now