Please check my ifs, thanks.