Changed multiplication to work fine with vectors