Updated platform files
Small refactoring