Trying to work out the bugs with module chaining. These files are partially modified to prep for future changes.