Added POSIX platform implementation