Added toBackground and toForeground