Implemented LineEdit for entering custom energy.