Added "act" function.