public void invokeMethodWithParams(Object o, String m,
			Object[] params, Class[] parTypes) {
		if (o == null || m == "" || m == null) {
			System.err.println("invokeMethodWithParams(): There was an error with your arguments");
			return;
		}
			Class c = o.getClass();
			Method method = null;
			try {
				method = c.getDeclaredMethod(m, parTypes);
			} catch (SecurityException e) {
				e.printStackTrace();
			} catch (NoSuchMethodException e) {
				// let's ignore this
				//e.printStackTrace();
			}
			if(method != null){
				try {
					method.invoke(o, params);
				} catch (IllegalArgumentException e) {
					e.printStackTrace();
					System.out.println("Try putting \"public\" before the functions");
				} catch (IllegalAccessException e) {
					e.printStackTrace();
				} catch (InvocationTargetException e) {
					e.printStackTrace();
				}
			}
	}