Added maxout modifications for monitoring.