Helper methods.
merge with helper