Polished functions in Platform.cpp