Remove ply global variable