It compiles but works only sometimes.