Fixed that FUNCTION was accepted like PROCEDURE (like in Pascal).