Refactored platform interface and directory layout.