Separate mean and STD functions