Abstracted out floor building to a separate function