Added complexity and function length rules