Event flag partial implementation