Trying to prevent IllegalAccessException