Fixed orientation and other issues.