Added chain capability to base analysis class

User can now also use chains for analysis