Just converted it to a function now.