Layout input and output