Fixed RWR script