Code with multiple dynamic features to handle complex observations