Add support for interactive flag and batch size parameter to the Titan kernel.