Calling function properly now.