Bed verification

Tests still to come