Volume assignment but code is repeated.