Updated for NetBeans.