Added function to record Brian model