Added new in and out rules