Bug with procedure declaration fixed.