Added tank inlet and outlet