Added orientation change support.