Added function to test_procedural which is still buggy.