Initial program with working filter and creation of most modules.