Made testing friendly.