Added delay method call in native code