public static Boolean findPlugins(){
		File dir = new File(System.getProperty("user.dir") + File.separator + pluginDirectory);
		ClassLoader cl = new PluginClassLoader(dir);
		if (dir.exists()) {
			if(dir.isDirectory()){
				String[] files = dir.list();
				for (int i=0; i<files.length; i++) {
					try {
						if (! files[i].endsWith(".class"))
							continue;

						Class<?> c = cl.loadClass(files[i].substring(0, files[i].indexOf(".")));
						Class[] intf = c.getInterfaces();
						
						for (int j=0; j<intf.length; j++) {
							if (intf[j].getName().equals("IPlugin")) {

								IPlugin ip = (IPlugin) c.newInstance();
								listOfPlugins.add(ip);
								pluginIsOn.add(false);
								continue;
							}
						}
					} catch (Exception ex) {
						System.err.println("File " + files[i] + " does not contain a valid PluginFunction class.");
						return false;
					}				
				}
			}else{
				System.out.println("File is not a directory");
				return false;
			}
		}else{
			System.out.println("Directory does not exist");
			return false;
		}
		
		if(listOfPlugins.isEmpty()){
			System.out.println("There are no plugins");
			return false;
		}
		return true;
	}