Added ghosting and set directions.