Working poorly written arbitrary bed