This function seems a bit redundant.