Added Threading to F.java