Add function to verify validity of parameters in configuration file.
Import some needed methods.
Import some needed methods.
Move some import statements around.