Use apply for fg and bg