Added bif environment, logger and exceptions.