Changed SpaceId to an actual variable