Move function rule up