Added a bunch of parameters, but still need to fix the database bug.