Fixed the function set post to match its actual implementation.