Added: Run function immediately after define