Added inlet and perioudic BCs