Partial helper with locals and instance variables