The following block can be merged with the one above