Added if for jvm