Changed explode & array_pop