Added direction to visibility events