Tested (and fixed) player porter code